package com.bw.hongye.user.service.impl;


import com.aliyun.common.utils.PageUtils;
import com.aliyun.common.utils.Query;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bw.hongye.user.dao.BrokerDao;
import com.bw.hongye.user.entity.BrokerEntity;
import com.bw.hongye.user.service.BrokerService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("brokerService")
public class BrokerServiceImpl extends ServiceImpl<BrokerDao, BrokerEntity> implements BrokerService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<BrokerEntity> page = this.page(
                new Query<BrokerEntity>().getPage(params),
                new QueryWrapper<BrokerEntity>()
        );

        return new PageUtils(page);
    }

}